package main

import (
	"fmt"
	"gorm-study/src/pkg/student/models"
	"gorm-study/src/pkg/utils/dbutil"
)

func main() {
	var student models.Student
	result := dbutil.DB.Where("Gender = ?", false).Find(&student)

	fmt.Printf("数量：%v \n", result.RowsAffected)
	fmt.Printf("ID:%v, Name:%v, Age:%v, Gender:%v \n", student.ID, student.Name, student.Age, student.Gender)
}
